<!--厂家-测试报告-->
<template>
	<Card :showBodySlot="ShowBody">
		<template #head>
			<view class="u-flex">
				<view class="u-flex-1">
					测试报告
				</view>
				<view class="u-flex-1 u-text-right">
					<u-switch v-model="formData.testReportFlag" active-color="#409EFF" inactive-color="#eee"></u-switch>
				</view>
			</view>
		</template>
		<template #body>
			<CellAttchmet v-model="formData.testReportEnclosure" :showVideo="false"></CellAttchmet>
		</template>
	</Card>
</template>

<script>
	import Card from '@/components/card/components/cardBaseWrapper.vue'
	import HButton from '@/components/button/index.vue'
	import CellAttchmet from '@/components/cell/itemAttachment.vue'
	export default {
		components: {
			Card,
			HButton,
			CellAttchmet
		},

		data() {

			return {
				formData: {
					testReportFlag: false,
					testReportEnclosure: '',
				}
			}
		},
		computed: {
			ShowBody() {
				return this.formData.testReportFlag
			}
		},
		methods: {
			//添加厂家
			onFactory() {
				this.$emit('onFactory')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.head {
		display: flex;

		>.left,
		.right {
			flex: 1;
		}

		>.left {
			font-weight: 600;
			font-size: 32rpx;
			color: #0F2E4D;
		}

		>.right {
			text-align: right;
		}
	}
</style>
